/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import slcu.model.Alumno;

/**
 * The persistence interface for the Alumno service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see AlumnoPersistenceImpl
 * @see AlumnoUtil
 * @generated
 */
public interface AlumnoPersistence extends BasePersistence<Alumno> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link AlumnoUtil} to access the Alumno persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the Alumno in the entity cache if it is enabled.
	*
	* @param alumno the Alumno
	*/
	public void cacheResult(slcu.model.Alumno alumno);

	/**
	* Caches the Alumnos in the entity cache if it is enabled.
	*
	* @param alumnos the Alumnos
	*/
	public void cacheResult(java.util.List<slcu.model.Alumno> alumnos);

	/**
	* Creates a new Alumno with the primary key. Does not add the Alumno to the database.
	*
	* @param alumnoId the primary key for the new Alumno
	* @return the new Alumno
	*/
	public slcu.model.Alumno create(long alumnoId);

	/**
	* Removes the Alumno with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param alumnoId the primary key of the Alumno
	* @return the Alumno that was removed
	* @throws slcu.NoSuchAlumnoException if a Alumno with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno remove(long alumnoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchAlumnoException;

	public slcu.model.Alumno updateImpl(slcu.model.Alumno alumno, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the Alumno with the primary key or throws a {@link slcu.NoSuchAlumnoException} if it could not be found.
	*
	* @param alumnoId the primary key of the Alumno
	* @return the Alumno
	* @throws slcu.NoSuchAlumnoException if a Alumno with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno findByPrimaryKey(long alumnoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchAlumnoException;

	/**
	* Returns the Alumno with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param alumnoId the primary key of the Alumno
	* @return the Alumno, or <code>null</code> if a Alumno with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno fetchByPrimaryKey(long alumnoId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the Alumnos where dni = &#63;.
	*
	* @param dni the dni
	* @return the matching Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Alumno> findByDNI(java.lang.String dni)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the Alumnos where dni = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dni the dni
	* @param start the lower bound of the range of Alumnos
	* @param end the upper bound of the range of Alumnos (not inclusive)
	* @return the range of matching Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Alumno> findByDNI(java.lang.String dni,
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the Alumnos where dni = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dni the dni
	* @param start the lower bound of the range of Alumnos
	* @param end the upper bound of the range of Alumnos (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Alumno> findByDNI(java.lang.String dni,
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first Alumno in the ordered set where dni = &#63;.
	*
	* @param dni the dni
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Alumno
	* @throws slcu.NoSuchAlumnoException if a matching Alumno could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno findByDNI_First(java.lang.String dni,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchAlumnoException;

	/**
	* Returns the first Alumno in the ordered set where dni = &#63;.
	*
	* @param dni the dni
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Alumno, or <code>null</code> if a matching Alumno could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno fetchByDNI_First(java.lang.String dni,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last Alumno in the ordered set where dni = &#63;.
	*
	* @param dni the dni
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Alumno
	* @throws slcu.NoSuchAlumnoException if a matching Alumno could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno findByDNI_Last(java.lang.String dni,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchAlumnoException;

	/**
	* Returns the last Alumno in the ordered set where dni = &#63;.
	*
	* @param dni the dni
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Alumno, or <code>null</code> if a matching Alumno could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno fetchByDNI_Last(java.lang.String dni,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the Alumnos before and after the current Alumno in the ordered set where dni = &#63;.
	*
	* @param alumnoId the primary key of the current Alumno
	* @param dni the dni
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Alumno
	* @throws slcu.NoSuchAlumnoException if a Alumno with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Alumno[] findByDNI_PrevAndNext(long alumnoId,
		java.lang.String dni,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchAlumnoException;

	/**
	* Returns all the Alumnos.
	*
	* @return the Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Alumno> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the Alumnos.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Alumnos
	* @param end the upper bound of the range of Alumnos (not inclusive)
	* @return the range of Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Alumno> findAll(int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the Alumnos.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Alumnos
	* @param end the upper bound of the range of Alumnos (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Alumno> findAll(int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the Alumnos where dni = &#63; from the database.
	*
	* @param dni the dni
	* @throws SystemException if a system exception occurred
	*/
	public void removeByDNI(java.lang.String dni)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the Alumnos from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of Alumnos where dni = &#63;.
	*
	* @param dni the dni
	* @return the number of matching Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public int countByDNI(java.lang.String dni)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of Alumnos.
	*
	* @return the number of Alumnos
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}